<?php
class Application_Model_Car extends Application_Model_Vehicle
{

	protected $_carId;
	protected $_energy;
	protected $_transmission;
	
	
	public function getAttribs()
	{
		$attribs = array(
				'name'				=> $this->getName(),
				'description'		=> $this->getDescription(),
				'url'				=> $this->getUrl(),
				'images'			=> $this->getImages(),
				'model'				=> $this->getModel(),
				'brand'				=> $this->getBrand(),
				'year' 				=> $this->getYear(),
				'mileage'			=> $this->getMileage(),
				'energy'			=> $this->getEnergy(),
				'transmission'		=> $this->getTransmission(),
		);
		return $attribs;
	}
	/**
	 * @return the $_carId
	 */
	public function getCarId() {
		return $this->_carId;
	}

	/**
	 * @return the $_energy
	 */
	public function getEnergy() {
		return $this->_energy;
	}

	/**
	 * @return the $_transmission
	 */
	public function getTransmission() {
		return $this->_transmission;
	}

	/**
	 * @param field_type $_carId
	 */
	public function setCarId($_carId) {
		$this->_carId = $_carId;
	}

	/**
	 * @param field_type $_energy
	 */
	public function setEnergy($_energy) {
		$this->_energy = $_energy;
	}

	/**
	 * @param field_type $_transmission
	 */
	public function setTransmission($_transmission) {
		$this->_transmission = $_transmission;
	}
	
	/**
	 * return the texte for the HTML view
	 * @return string
	 */
	public function getTransmissionRender($tr) {
		switch ($tr) {
			case "0":
				return "";
				break;
			case "1":
				return "Manuel";
				break;
			case "2":
				return "Automatic";
				break;
		}
	}
	
	/**
	 * return the texte for the HTML view
	 * @return string
	 */
	public function getEnergyRender($tr) {
		switch ($tr) {
			case "0":
				return "";
				break;
			case "1":
				return "Diesel";
				break;
			case "2":
				return "Gas";
				break;
		}
	}

	
	


}